import 'package:flutter/material.dart';
import 'package:niu_app/pages/dynamic/account/API_account/api_account_Page.dart';
import 'package:niu_app/pages/dynamic/account/niu_account/niu_account_Page.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class pub1Tabbar extends StatefulWidget {
  @override
  _pub1TabbarState createState() => _pub1TabbarState();
}

class _pub1TabbarState extends State<pub1Tabbar> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 600+44+30.0.h,
      child: DefaultTabController(
        length: 2,
        child: Column(
          children: [
            Container(
             height: 44.h,
              width: 375.w,
              child: TabBar(
                labelColor: Colors.black,
                unselectedLabelColor: Colors.grey,
                indicatorColor: Color(0000000000),
                labelStyle: TextStyle(fontWeight: FontWeight.bold),
                tabs: [
                  Tab(text: "牛人账户",),
                  Tab(text: "API账户",),
                ],
              ),
            ),
            Expanded(
                flex: 1,
                child: TabBarView(
                  children: [
                    api_account_Page(),
                    niu_account_Page(),
                  ],
                )
            )
          ],
        ),

      ),
    );
  }
}
